home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / nivb / misc.frm < prev    next >
Text File  |  1995-05-07  |  1KB  |  54 lines

  1. VERSION 2.00
  2. Begin Form MiscForm 
  3.    Caption         =   "Miscellaneous Services Test"
  4.    ClientHeight    =   1980
  5.    ClientLeft      =   1530
  6.    ClientTop       =   1965
  7.    ClientWidth     =   3240
  8.    Height          =   2385
  9.    Left            =   1470
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   1980
  12.    ScaleWidth      =   3240
  13.    Top             =   1620
  14.    Width           =   3360
  15.    Begin CommandButton OKButton 
  16.       Caption         =   "&OK"
  17.       Height          =   375
  18.       Left            =   1200
  19.       TabIndex        =   0
  20.       Top             =   1440
  21.       Width           =   855
  22.    End
  23.    Begin Label SerialNumberLabel 
  24.       Height          =   255
  25.       Left            =   1200
  26.       TabIndex        =   2
  27.       Top             =   840
  28.       Width           =   1575
  29.    End
  30.    Begin Label Label1 
  31.       Caption         =   "Network serial number:"
  32.       Height          =   255
  33.       Left            =   360
  34.       TabIndex        =   1
  35.       Top             =   360
  36.       Width           =   2535
  37.    End
  38. End
  39.  
  40. Sub Form_Load ()
  41.     ccode% = GetNetworkSerialNumber(serialNumber&, appNumber%)
  42.  
  43.     If (ccode% = SUCCESSFUL) Then
  44.         SerialNumberLabel.Caption = Str$(serialNumber&)
  45.     Else
  46.         SerialNumberLabel.Caption = "Unable to obtain"
  47.     End If
  48. End Sub
  49.  
  50. Sub OKButton_Click ()
  51.     Unload MiscForm
  52. End Sub
  53.  
  54.